]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Fix overcounting of misc. symbols for password strength
authorDaPigGuy <mcpepig123@gmail.com>
Fri, 20 Mar 2026 01:48:13 +0000 (18:48 -0700)
committerDaPigGuy <mcpepig123@gmail.com>
Fri, 20 Mar 2026 01:51:18 +0000 (18:51 -0700)
There was previously a branch for lowercase symbols that was removed.
Lowercase symbols should not count as miscellaneous symbols, which
increase the password strength.

Fixes ecb7dcc5d67c33d2d5155ecfc32fc36a7e4cfa08

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4143>

src/shell-keyring-prompt.c

index 821505bc40a9169d17b366dc2c23451312fb1890..28c23d7ad5b50caec032e57b42acca39aa4e9c1b 100644 (file)
@@ -628,7 +628,7 @@ calculate_password_strength (const gchar *password)
         digit++;
       else if (g_ascii_isupper (password[i]))
         upper++;
-      else
+      else if (!g_ascii_islower (password[i]))
         misc++;
     }